/*
 * @Date: 2025-02-28 10:18:57
 * @LastEditors: MsChen Your email MsChen
 * @LastEditTime: 2025-02-28 10:21:31
 * @FilePath: /finance/Users/chenyufan/Downloads/框架/glm-mes-pc-ui/glm-mes-pc-MES_框架/src/api/wuliuOrder.js
 */
// 业务对象api - PLM
import request from '@/utils/request'
export function getListAPI(params) {
	return request({
		url: '/wuliu/order/list',
		method: 'get',
		params
	})
}

// 新增顺丰订单
export const getAddSFExpressAPI = (data) => {
	return request({
		url: '/wuliu/order',
		method: 'POST',
		headers: { repeatSubmit: false },
		data
	})
}
// 新增京东订单
export const getAddJDExpressAPI = (data) => {
	return request({
		url: '/wuliu/order/jingdongAdd',
		method: 'POST',
		headers: { repeatSubmit: false },
		data
	})
}

// 新增国际订单
export const getAdddhlExpressAPI = (data) => {
	return request({
		url: '/wuliu/order/dhlAdd',
		method: 'POST',
		headers: { repeatSubmit: false },
		data
	})
}

//预估运费
export function getPriceQueryAPI(params) {
	return request({
		url: '/wuliu/api/getPriceQuery',
		method: 'get',
		params
	})
}

//获取国际地址解析
export function getInternationalAPI(params) {
	return request({
		url: '/wuliu/order/getInternationalAddress',
		method: 'get',
		params
	})
}

export function getChildOrderListAPI(params) {
    return request({
        url: '/wuliu/order/getChildOrderList',
        method: 'get',
        params
    })
}



// 合并订单
export const mergeOrders = (data) => {
    return request({
        url: '/wuliu/order/mergeOrders',
        method: 'POST',
        headers: { repeatSubmit: false },
        data
    })
}
// 取消合并订单
export const cancelMergeOrders = (data) => {
    return request({
        url: '/wuliu/order/cancelMergeOrders',
        method: 'POST',
        headers: { repeatSubmit: false },
        data
    })
}

// 发货
export const sendOrderApi = (data) => {
    return request({
        url: '/wuliu/order/sendOrder',
        method: 'POST',
        headers: { repeatSubmit: false },
        data
    })
}
export function queryExpressInfoAPI(params) {
    return request({
        url: '/wuliu/order/queryExpressInfo',
        method: 'get',
        params
    })
}

// 顺丰订单条形码
export const sfExpressBarcode = (data) => {
    return request({
        url: '/wuliu/order/sfPrintWaybill',
        method: 'POST',
        headers: { repeatSubmit: false },
        data
    })
}

// 京东订单条形码
export const jdExpressBarcode = (data) => {
    return request({
        url: '/wuliu/order/jdPrintWaybill',
        method: 'post',
        headers: { repeatSubmit: false },
        data
    })
}
// 省市区三级联动
export const getAreaListAPI = (params) => {
    return request({
        url: '/wuliu/region/list',
        method: 'get',
        params
    })
}

